package org.mango.bean;

import org.mango.validator.anno.Refer;
import org.mango.validator.group.G1;
import org.mango.validator.refer.AOneBNotNullValidator;

import java.io.Serializable;

/**
 * Created by meigang on 17/9/16.
 */
public class C extends A implements Serializable{

    private String c1;
    @Refer(validator = AOneBNotNullValidator.class,
            groups = {G1.class},
            param = {"org.mango.bean.C:c1=110"},
            message = "c2的值在c1=110，才不能为空")
    private String c2;

    public String getC1() {
        return c1;
    }

    public void setC1(String c1) {
        this.c1 = c1;
    }

    public String getC2() {
        return c2;
    }

    public void setC2(String c2) {
        this.c2 = c2;
    }


}
